package com.ruoyi.finances.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import javax.validation.constraints.NotNull;

/**
 * 现金账户对象 tb_account_cash
 *
 * @author ruoyi
 * @date 2024-11-14
 */
public class TbAccountCash extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 账户编码 */
    @Excel(name = "账户编码")
    private Long accountId;

    /** 账户名称 */
    @Excel(name = "账户名称")
    @NotNull(message = "账户名称不能为空")
    private String accountName;

    /** 币别 */
    @Excel(name = "币别")
    @NotNull(message = "账户名称不能为空")
    private String currency;

    /** 会计科目 */
    @Excel(name = "会计科目")
    @NotNull(message = "会计科目不能为空")
    private String accountingAccount;

    /** 状态 */
    @Excel(name = "状态")
    private String accountStatus;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setAccountId(Long accountId)
    {
        this.accountId = accountId;
    }

    public Long getAccountId()
    {
        return accountId;
    }
    public void setAccountName(String accountName)
    {
        this.accountName = accountName;
    }

    public String getAccountName()
    {
        return accountName;
    }
    public void setCurrency(String currency)
    {
        this.currency = currency;
    }

    public String getCurrency()
    {
        return currency;
    }
    public void setAccountingAccount(String accountingAccount)
    {
        this.accountingAccount = accountingAccount;
    }

    public String getAccountingAccount()
    {
        return accountingAccount;
    }
    public void setAccountStatus(String accountStatus)
    {
        this.accountStatus = accountStatus;
    }

    public String getAccountStatus()
    {
        return accountStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("accountId", getAccountId())
            .append("accountName", getAccountName())
            .append("currency", getCurrency())
            .append("accountingAccount", getAccountingAccount())
            .append("accountStatus", getAccountStatus())
            .toString();
    }
}
